<?php
class Cate extends Model {
	protected $validate = array(
		array('catename', 'require', '分类名称不能为空'),
		array('type', 'require', '类型不能为空'),
	);
	
	public function setTable() {
		$this->table = $this->db->getTable('cate');
	}
	
	public static function getTable() {
		return $this->db->getTable('cate');
	}
}
?>